﻿using System.Collections.Generic;
using ML.Entity;

namespace ML.IBusiness
{
    /// <summary>
    /// 产品分类业务接口
    /// </summary>
    public interface IProductCategoryBusiness
    {
        /// <summary>
        /// 根据查询条件查询产品分类信息
        /// </summary>
        /// <param name="productSearch">产品分类查询条件</param>
        /// <returns></returns>

        BaseResult<Pager<ProductCategoryResponse>> List(ProductCategorySearch productCategorySearch);

        /// <summary>
        /// 根据商户Id查询产品分类列表
        /// </summary>
        /// <param name="id">商户Id</param>
        /// <returns></returns>
        BaseResult<IEnumerable<DropDownList>> GetListByMerchantId(string id);

        /// <summary>
        /// 添加产品分类
        /// </summary>
        /// <param name="entity">产品分类实体</param>
        /// <returns></returns>
        BaseResult<bool> Add(ProductCategoryEntity entity);

        /// <summary>
        /// 更新产品分类信息
        /// </summary>
        /// <param name="entity">产品分类实体</param>
        /// <returns></returns>
        BaseResult<bool> Update(ProductCategoryEntity entity);

        /// <summary>
        /// 删除产品分类
        /// </summary>
        /// <param name="id">产品分类Id</param>
        /// <returns></returns>
        BaseResult<bool> Delete(string id);
    }
}